require 'rubygems'

if RUBY_VERSION =~ /^1\.9\./
  require 'simplecov'
  SimpleCov.start do
    add_filter "/lib/dionysus/version.rb"
    add_filter "/spec/"
  end
end

require 'bundler'

Bundler.require :default, :test

Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f|  require f}

RSpec.configure do |config|
  config.mock_with :mocha
  config.order = "random"
end
